
import 'package:lishopflu/base/controller_import.dart';
import 'package:lishopflu/bean/icon_text_bean.dart';

class MyCtl extends BaseController with SingleGetTickerProviderMixin{

  final mList = RxList<String>([]);
  final mMemberList = RxList<IconTextBean>([]);
  final mOrderList = RxList<IconTextBean>([]);

  @override
  void onDestroy() {

  }

  @override
  void onFirst() {
    for(var i=0;i<10;++i) {
      mList.add('数据' + mList.length.toString());
    }
    mMemberList.add(IconTextBean('会员中心',Icons.card_membership));
    mMemberList.add(IconTextBean('淘宝省钱卡',Icons.wallet_travel));
    mMemberList.add(IconTextBean('淘宝人生',Icons.title));
    mMemberList.add(IconTextBean('红包签到',Icons.attach_money));

    mOrderList.add(IconTextBean('待付款',Icons.attach_money));
    mOrderList.add(IconTextBean('代发货',Icons.attach_money));
    mOrderList.add(IconTextBean('待收货',Icons.attach_money));
    mOrderList.add(IconTextBean('待评价',Icons.attach_money));
    mOrderList.add(IconTextBean('退款/售后',Icons.attach_money));
  }

  void toSetting() => Get.toNamed(AppPages.SETTING);

  void toPerson() => Get.toNamed(AppPages.PERSON_INFO);
}